class Car:

    wheelShape = 0

    def __init__(self,name,color):
        self.name = name
        self.color = color

    def __del__(self):
        self.name = ""
        self.color = ""

    def letsGo(self):
        print(self.name ," go go go whit color ",self.color )
        Car.wheelShape = 21
        print(Car.wheelShape)
        print(self.wheelShape)

    @staticmethod
    def getWheelShape():
        return Car.wheelShape


# 飞车继承原来的Car类
class FlyCar(Car):
    def __init__(self,name,color,high):
        Car.__init__(self,name,color)
        self.high = high

    def getHigh(self):
        print("可以达到的高度" , self.high)
        return self.high


class Fly:
    def __init__(self,high):
        self.high = high

    def getHigh(self):
        return self.high

class NewFlyCar(Fly,Car):
    def __init__(self,name,color,high):
        Fly.__init__(self,high)
        Car.__init__(self,name,color)


if __name__ == '__main__':
    # 类实例化
    myCar = Car("bmw","bule")


    myNewFlyCar = NewFlyCar("bmw","bule",500)
    myNewFlyCar.letsGo()
    myNewFlyCar.getHigh()